package com.lqm.ssh;

import java.util.Date;

import javax.persistence.Entity;

@Entity
public class Book {
	private int bookid;
	private String bookname;
	private String bookprice;
	private String bookauthor;
	private String bookpress;
	private Date bookdate;
	
	public Book(){}
	
//	public Book(String bookname,String bookprice,String bookauthor,
//			String bookpress,Date bookdate){
//	    this.bookname = bookname;
//	    this.bookpress = bookpress;
//	    this.bookauthor = bookauthor;
//	    this.bookprice =bookprice;
//	    this.bookdate = bookdate;
//		
//		
//	}
	
	
	public int getBookid() {
		return bookid;
	}
	public Book(int bookid, String bookname, String bookprice, String bookauthor,
	String bookpress, Date bookdate) {
		this.bookid = bookid;
		this.bookname = bookname;
		this.bookprice = bookprice;
		this.bookauthor = bookauthor;
		this.bookpress = bookpress;
		this.bookdate = bookdate;
}

	public void setBookid(int bookid) {
		this.bookid = bookid;
	}
	public String getBookname() {
		return bookname;
	}
	public void setBookname(String bookname) {
		this.bookname = bookname;
	}
	public String getBookprice() {
		return bookprice;
	}
	public void setBookprice(String bookprice) {
		this.bookprice = bookprice;
	}
	public String getBookauthor() {
		return bookauthor;
	}
	public void setBookauthor(String bookauthor) {
		this.bookauthor = bookauthor;
	}
	public String getBookpress() {
		return bookpress;
	}
	public void setBookpress(String bookpress) {
		this.bookpress = bookpress;
	}
	public Date getBookdate() {
		return bookdate;
	}
	@Override
	public String toString() {
		return "book [bookid=" + bookid + ", bookname=" + bookname
				+ ", bookprice=" + bookprice + ", bookauthor=" + bookauthor
				+ ", bookpress=" + bookpress + ", bookdate=" + bookdate + "]";
	}
	public void setBookdate(Date bookdate) {
		this.bookdate = bookdate;
	}
}


